<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta name="generator" content="HTML Tidy for Linux/x86 (vers 12 April 2005), see www.w3.org" />

  <title>Using Perspectives</title>
  <link href="book.css" rel="stylesheet" type="text/css" />
  <meta content="DocBook XSL-NS Stylesheets V1.73.0" name="generator" />
  <link rel="start" href="index.html" title="EPIC - User's Guide" />
  <link rel="up" href="ch04.html" title="Eclipse Basics" />
  <link rel="prev" href="ch04s02.html" title="Views" />
  <link rel="next" href="ch04s04.html" title="Using Views" />
</head>

<body>
  <div class="section" lang="en" xml:lang="en">
    <div class="titlepage">
      <div>
        <div>
          <h2 class="title" style="clear: both"><a id="N102E3" name="N102E3"></a>Using
          Perspectives</h2>
        </div>
      </div>
    </div>

    <div class="section" lang="en" xml:lang="en">
      <div class="titlepage">
        <div>
          <div>
            <h3 class="title"><a id="N102E6" name="N102E6"></a>New Perspectives</h3>
          </div>
        </div>
      </div>

      <p>There are several ways to open a new perspective within this Workbench window:</p>

      <div class="itemizedlist">
        <ul type="disc">
          <li>
            <p>Using the Open Perspective button <span class="inlinemediaobject"><img src=
            "images/Image70_shortcut2.gif" alt="Open Perspective" /></span> on the shortcut
            bar.</p>
          </li>

          <li>
            <p>Choosing a perspective from the <span class="guimenu">Window</span> → <span class=
            "guisubmenu">Open Perspective</span> menu.</p>
          </li>
        </ul>
      </div>

      <p>To open one by using the shortcut bar button:</p>

      <div class="orderedlist">
        <ol type="1">
          <li>
            <p>Click on the Open Perspective button <span class="inlinemediaobject"><img src=
            "images/Image70_shortcut2.gif" alt="Open Perspective" /></span>.</p>
          </li>

          <li>
            <p>A menu appears showing the same choices as shown on the <span class=
            "guimenu">Window</span> → <span class="guisubmenu">Open Perspective</span> menu. Choose
            <span class="guimenuitem">Other</span> from the menu.</p>

            <div class="screenshot">
              <div class="mediaobject">
                <img src="images/Image70_shortcut3.gif" alt="Open Perspective Menu" />
              </div>
            </div>
          </li>

          <li>
            <p>In the Select Perspective dialog choose <span class="guilabel">Debug</span> and
            click <span class="guibutton">OK</span>.</p>

            <div class="screenshot">
              <div class="mediaobject">
                <img src="images/Image70_select_pers.gif" alt="Select Perspective" />
              </div>
            </div>

            <p>The Debug perspective is displayed.</p>
          </li>

          <li>
            <p>There are several other interesting things to take note of.</p>

            <div class="itemizedlist">
              <ul type="disc">
                <li>
                  <p>The title of the window now indicates that the Debug perspective is in
                  use.</p>
                </li>

                <li>
                  <p>The shortcut bar contains several perspectives, the original Resource
                  perspective, the new Debug perspective and a few others. The Debug perspective
                  button is pressed in, indicating that it is the current perspective.</p>
                </li>

                <li>
                  <p>To display the full name of the perspective right click the perspective bar
                  and check <span class="guimenuitem">Show Text</span>.</p>

                  <div class="screenshot">
                    <div class="mediaobject">
                      <img src="images/Image70_shortcut4.gif" alt="Debug Perspective" />
                    </div>
                  </div>
                </li>
              </ul>
            </div>
          </li>

          <li>
            <p>In the shortcut bar, click on the Resource perspective button. The Resource
            perspective is once again the current perspective. Notice that the set of views is
            different for each of the perspectives.</p>
          </li>
        </ol>
      </div>
    </div>

    <div class="section" lang="en" xml:lang="en">
      <div class="titlepage">
        <div>
          <div>
            <h3 class="title"><a id="N10361" name="N10361"></a>Configuring Perspectives</h3>
          </div>
        </div>
      </div>

      <p>In addition to configuring the layout of a perspective you can also control several other
      key aspects of a perspective. These include:</p>

      <div class="itemizedlist">
        <ul type="disc">
          <li>
            <p>The <span class="guimenu">New</span> menu.</p>
          </li>

          <li>
            <p>The <span class="guimenu">Window</span> → <span class="guisubmenu">Open
            Perspective</span> menu.</p>
          </li>

          <li>
            <p>The <span class="guimenu">Window</span> → <span class="guisubmenu">Show View</span>
            menu.</p>
          </li>

          <li>
            <p>Action sets that show up on the toolbar.</p>
          </li>
        </ul>
      </div>

      <p>Try customizing one of these items.</p>

      <div class="orderedlist">
        <ol type="1">
          <li>
            <p>In the shortcut bar click on the Resource perspective.</p>
          </li>

          <li>
            <p>Select <span class="guimenu">Window</span> → <span class="guimenuitem">Customize
            Perspective...</span>.</p>
          </li>

          <li>
            <p>Select the <span class="guilabel">Commands</span> tab.</p>
          </li>

          <li>
            <p>Check <span class="guilabel">Launch</span> and click <span class=
            "guibutton">OK</span>.</p>

            <div class="screenshot">
              <div class="mediaobject">
                <img src="images/Image71_pers_customize.gif" alt="Customizing Perspective" />
              </div>
            </div>
          </li>

          <li>
            <p>Observe that the toolbar now includes buttons for debug/run launching.</p>

            <div class="screenshot">
              <div class="mediaobject">
                <img src="images/Image71_pers_rundebug.gif" alt="Customized Perspective" />
              </div>
            </div>
          </li>

          <li>
            <p>After experimenting with the other options on the Customize Perspective dialog,
            choose <span class="guimenu">Window</span> → <span class="guimenuitem">Reset
            Perspective</span> to return the perspective to its original state.</p>
          </li>
        </ol>
      </div>
    </div>

    <div class="section" lang="en" xml:lang="en">
      <div class="titlepage">
        <div>
          <div>
            <h3 class="title"><a id="N103D0" name="N103D0"></a>Saving a User Defined
            Perspective</h3>
          </div>
        </div>
      </div>

      <p>If you have modified a perspective by adding, deleting, or moving (docking) views, you can
      save your changes for future use.</p>

      <div class="orderedlist">
        <ol type="1">
          <li>
            <p>Switch to the perspective that you want to save.</p>
          </li>

          <li>
            <p>Click <span class="guimenu">Window</span> → <span class="guimenuitem">Save
            Perspective As</span>.</p>
          </li>

          <li>
            <p>Type a new name for the perspective into the <span class="guilabel">Name</span>
            field.</p>
          </li>

          <li>
            <p>Click <span class="guibutton">OK</span>.</p>
          </li>
        </ol>
      </div>
    </div>

    <div class="section" lang="en" xml:lang="en">
      <div class="titlepage">
        <div>
          <div>
            <h3 class="title"><a id="N103F5" name="N103F5"></a>Resetting Perspectives</h3>
          </div>
        </div>
      </div>

      <p>To restore a perspective to its original layout:</p>

      <div class="orderedlist">
        <ol type="1">
          <li>
            <p>Click <span class="guimenu">Window</span> → <span class=
            "guimenuitem">Preferences</span>.</p>
          </li>

          <li>
            <p>Expand <span class="guilabel">Workbench</span> and choose <span class=
            "guilabel">Perspectives</span>.</p>
          </li>

          <li>
            <p>From the <span class="guilabel">Available perspectives</span> list, select the
            perspective you want to restore.</p>
          </li>

          <li>
            <p>Click <span class="guibutton">Reset</span>.</p>
          </li>

          <li>
            <p>Click <span class="guibutton">OK</span>.</p>
          </li>
        </ol>
      </div>
    </div>
  </div>
</body>
</html>
